﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Meinv1 qq = new Meinv1();
            qq.zname = "张三";
            qq.name = "埃洛克";
            qq.attack = 80;
            qq.defense = 70;
            qq.speed = 50;
            qq.introduce = "用拳头打架";
            qq.jn();
            Console.WriteLine("---------------------------------------------------------------");
            Meinv2 ww = new Meinv2();
            ww.zname = "李四";
            ww.name = "泰拉";
            ww.attack = 70;
            ww.defense = 65;
            ww.speed = 50;
            ww.introduce = "战无不胜攻无不克";
            ww.jn();
            Console.WriteLine("---------------------------------------------------------------");
            Meinv3 ee = new Meinv3();
            ee.zname = "王五";
            ee.name = "卢卡斯";
            ee.attack = 70;
            ee.defense = 50;
            ee.speed = 60;
            ee.introduce = "彬彬有礼的辅助";
            ee.jn();
            Console.WriteLine("---------------------------------------------------------------");
            Meinv4 rr = new Meinv4();
            rr.zname = "朱六";
            rr.name = "菲洛";
            rr.attack = 70;
            rr.defense = 40;
            rr.speed = 80;
            rr.introduce = "诱惑人的小妖精";
            rr.jn();
            Console.ReadKey();
        }
    }
    class Common //共同
    {
        private string Zname;//用户名
        private string Name;//名字
        private int Attack;//攻击
        private int Defense;//防御
        private int Speed;//速度
        private string Introduce;//介绍
        public string zname
        {
            get { return this.Zname; }
            set { this.Zname = value; }
        }
        public string name
        {
            get { return this.Name; }
            set { this.Name = value; }
        }
        public int attack
        {
            get { return this.Attack; }
            set { this.Attack = value; }
        }
        public int defense
        {
            get { return this.Defense; }
            set { this.Defense = value; }
        }
        public int speed
        {
            get { return this.Speed; }
            set { this.Speed = value; }
        }
        public string introduce
        {
            get { return this.Introduce; }
            set { this.Introduce = value; }
        }
        public Common(string zname, string name, int attack, int defense, int speed,string introduce)
        {
            this.Zname = zname;
            this.Name = name;
            this.Attack = attack;
            this.Defense = defense;
            this.Speed = speed;
            this.Introduce = introduce;
        }
        public Common() { }
        public void DDO() 
        {
            Console.WriteLine("我叫{0},我选择的英雄是{1},它的攻击为{2},防御为{3},速度为{4},对它的介绍为{5}", this.Zname, this.Name, this.Attack, this.Defense, this.Speed,this.Introduce);
        }
    }
    class Meinv1: Common //埃洛克
    {
        public void jn() 
        {
            base.DDO();
            Console.WriteLine("它有以下技能");
            Console.WriteLine("一技能：碎石打击  二技能：烈焰锚钩 三技能：战斗咆哮");
        }
    }
    class Meinv2 : Common //泰拉
    {
        public void jn()
        {
            base.DDO();
            Console.WriteLine("它有以下技能");
            Console.WriteLine("一技能：巨浪冲击  二技能：元素突击 三技能：复仇杀戮");
        }
        
    }
    class Meinv3 : Common //卢卡斯
    {
        public void jn()
        {
            base.DDO();
            Console.WriteLine("它有以下技能");
            Console.WriteLine("一技能：减速陷阱  二技能：能量浪潮 三技能：旋风剑舞");
        }
    }
    class Meinv4 : Common //菲洛
    {
        public void jn()
        {
            base.DDO();
            Console.WriteLine("它有以下技能");
            Console.WriteLine("一技能：能量精灵  二技能：暗影传送 三技能：时空迸裂");
        }
    }
}
